
<div class="d-kuan d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
	<span class="d-zitiyanse-hongse">评论下载</span>

</div>
{if $member}
	{php $pinglunxiazai = \Phpcmf\Service::M()->db->table('1_quan_form_son_comment')->where('cid', $t.id)->where('uid', $member.uid)->get()->getRowArray();}

	{if $pinglunxiazai || $t.uid == $member.uid}
		{loop $t.xiazaifujian $i $c}
		<div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
			<div class="d-kuan-70 d-imgs">
				<img src="{HOME_THEME_PATH}quan/img/yasuo.png" width="40" height="40"/>
			</div>
			<div class="d-kuan">
				<div class="pull-left">
					<div class="d-wenzi-14 d-zitiyanse-hui">
						本地下载 <span class="d-wenzi-12 d-zitiyanse-hui">[官网]</span>
					</div>
					<div class="d-wenzi-14">{$i+1}. {$c.title}</div>
				</div>
				<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
					<a href="{dr_down_file($c.file)}">
					<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
						下 载
					</div>
					</a>
				</div>
			</div>
		</div>
		{/loop}
		{loop $t.yunxiazai $v}
		<div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
			<div class="d-kuan-70 d-imgs">
				<img src="{HOME_THEME_PATH}quan/img/yun.png" width="40" height="40"/>
			</div>
			<div class="d-kuan">
				<div class="pull-left">
					<div class="d-wenzi-14">
						{$v[1]} <span class="d-wenzi-12 d-zitiyanse-hui">[云盘]</span>
					</div>
					{if $v[3]}<div class="d-wenzi-14">提取码:<span class="d-zitiyanse-hongse">{$v[3]}</span></div>{/if}
				</div>
				<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
					<a href="{$v[2]}" target="_blank">
					<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
						下 载
					</div>
					</a>
				</div>
			</div>
		</div>
		{/loop}
	{else}
		<div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
			<div class="d-kuan-70 d-imgs">
				<img src="{HOME_THEME_PATH}quan/img/yasuo.png" width="40" height="40"/>
			</div>
			<div class="d-kuan">
				<div class="pull-left">
					<div class="d-wenzi-14 d-zitiyanse-hongse">
						评论后下载 <span class="d-wenzi-12 d-zitiyanse-hui">[官网]</span>
					</div>
					<div class="d-wenzi-14">附件下载</div>
				</div>
				<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
					<a href="{dr_son_url($t)}">
						<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
							下 载
						</div>
					</a>
				</div>
			</div>
		</div>
	{/if}
{else}
    <div class="d-kuan d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
    	<div class="d-kuan-70 d-imgs">
    		<img src="{HOME_THEME_PATH}quan/img/yasuo.png" width="40" height="40"/>
    	</div>
    	<div class="d-kuan">
    		<div class="pull-left">
    			<div class="d-wenzi-14 d-zitiyanse-hui">
    				请登录后下载 <span class="d-wenzi-12 d-zitiyanse-hui">[官网]</span>
    			</div>
    			<div class="d-wenzi-14">附件下载</div>
    		</div>
    		<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
    			<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
    			<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
    				下 载
    			</div>
    			</a>
    		</div>
    	</div>
    </div>
{/if}
<style>
	.d-imgs img {
		max-width: 100%;
		margin-bottom: 0px;
	}
</style>
<script>
	function d_pinglunxiazai() {
		layer.msg('评论后下载',{time:800});
	}
	
	
</script>